<?php
//=======================================
//###################################
// Kayako Web Solutions
//
// Source Copyright 2001-2004 Kayako Infotech Ltd.
// Unauthorized reproduction is not allowed
// License Number: $%LICENSE%$
// $Author: vshoor $ ($Date: 2005/09/26 01:21:38 $)
// $RCSfile: impex_step3.php,v $ : $Revision: 1.4 $ 
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
//###################################
//=======================================


if (!defined("INSWIFT")) {
	// File being called directly, end it
	trigger_error("Unable to process $PHP_SELF", E_USER_ERROR);
}

displayHeader();

$_SWIFT["error"] = true;

if ($dbCore->connected)
{
//	@unlink("./cache/".cleanVar($_POST["hashfilename"]));

	$registry = new Registry;
	$datastore = new DataStore;
	$cookie = new Cookie;
	$datastore->cache("settingscache");
	$datastore->cache("statuscache");
	$datastore->cache("ticketcountcache");
	$datastore->loadData();
	$settings = new Settings;

	rebuildImpexCaches();

} else {
	$_SWIFT["error"] = true;
}

displayMessage("Import Successful");
displayFooter();
?>